<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="__PUBLIC__/Js/Utils/md5-min.js"></script> 
<title>元宝管理系统</title>
<load href='__PUBLIC__/Css/style.css' />
<load href="__PUBLIC__/Js/Base.js" />

<script language="javascript" src="__PUBLIC__/Js/mootools-1.2.4-core.js"></script>
<load href="__PUBLIC__/Js/Ajax/ThinkAjax.js" />

<load href="__PUBLIC__/Js/common.js" />

 <script language="JavaScript">
<!--
var PUBLIC	 =	 '__PUBLIC__';
ThinkAjax.image = [	 '__PUBLIC__/Images/loading2.gif', '__PUBLIC__/Images/ok.gif','__PUBLIC__/Images/update.gif' ]
ThinkAjax.updateTip	=	'连接中～';

//提交登陆表单
function login(){

window.location();

}
function keydown(e){
	var e = e || event;
	if (e.keyCode==13)
	{
	$('submit').Click();
	}
}
	function fleshVerify(type){ 
	//重载验证码
		var timenow = new Date().getTime();
		if (type)
		{
		$('verifyImg').src= '__URL__/verify/adv/1/'+timenow;
		}else{
		$('verifyImg').src= '__URL__/verify/'+timenow;
		}
	
	}

	function resetform(){
	$('form1').reset();
	}	
	

	
	function makekind(value){
		
	$('kind').value = value;
	if(value=='Conductor')
	$('bossrow').style.display = "";
	else
	$('bossrow').style.display = "none";
	}
	

	
//-->
</script>
</head>
<body onLoad="document.login.user_id.focus()" >
<form method='post' name="login" id="form1" action="__URL__/insert" >
<div class="tCenter hMargin">
<table id="checkList" class="login shadow" cellpadding=0 cellspacing=0 >
<tr><td height="5" colspan="2" class="topTd" ></td></tr>
<tr class="row" >
  <Th colspan="2" class="tCenter space" ><img src="__PUBLIC__/Images/logo.png" width="36" height="32" border="0" alt="" align="absmiddle"> 用户注册</th>
</tr>
<tr><td height="5" colspan="2" class="topTd" ></td></tr>
<tr class="row" ><td colspan="2" class="tCenter"><div id="result" class="result none"></div></td></tr>
<tr class="row" ><td class="tRight" width="25%">帐 号：</td><td><input type="text" class="medium bLeftRequire" check="Require" warning="请输入帐号" name="user_id"></td></tr>
<tr class="row" ><td class="tRight">密 码：</td><td><input id="password" type="password" class="medium bLeftRequire" check="Require" onblur="if((this.value).length<16){this.value=hex_md5(this.value);}"   warning="请输入密码" name="password"></td></tr>
<tr class="row" ><td class="tRight">再次输入：</td><td><input id="repassword" type="password" class="medium bLeftRequire" check="Require" onblur="if((this.value).length<16){this.value=hex_md5(this.value);}"   warning="请输入密码" name="repassword"></td></tr>
<tr class="row" ><td class="tRight">账号类型：</td><td>
<select name="select" size="1" onchange="makekind(this.value)">
    <option value="Guest">普通(默认)</option>
    <option value="Gold">金牌商户</option>
    <option value="Supplier">供货商</option>
    <option value="Distributor">分销商</option>
    <option value="Student">学生创业</option> 
	<option value="Conductor">客服</option> 
  </select>
    <input id="kind"  type="text" value="Guest" size="8"  class="medium bLeftRequire"   name="kind" />
  </td>
</tr>
<tr id="bossrow" style="display:none;"  class="row" ><td class="tRight" width="25%">Boss账号：</td><td><input  onclick="this.value='';$('verify').value=''"  type="text" class="medium bLeftRequire" id="boss" name="boss" value="输入老板id"></td></tr>

<tr ><td>Email</td><td><input type="text" name="email" id="email" onblur="if(!(IsEmail(this.value)))alert('请填写有效Email！');"/></td></tr>

<tr class="row" ><td class="tRight">验证码：</td><td><input id="verify" type="text" onKeyDown="keydown(event)"  class="small bLeftRequire" check="Require" warning="请输入验证码" name="verify"> <img id="verifyImg" SRC="__URL__/verify/" onClick="fleshVerify()" BORDER="0" ALT="点击刷新验证码" style="cursor:pointer" align="absmiddle"></td></tr>
<tr class="row" ><td class="tCenter" align="justify" colspan="2">
<input type="submit" id="submit"  value="注 册" id="submit" name="submit"   class="submit medium hMargin"> 
<input type="button" onclick="resetform()"  class="submit medium hMargin" id="regbtn" value="重 置" /></td>
</tr>
<tr><td height="5" colspan="2" class="bottomTd" ></td></tr>
</table>
<div class="result"></div>
</div>
</form>
</body>
</html>